package com.guoning.office_system.controller;

import com.guoning.office_system.model.User;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

public class BaseController {

    public User getUserDate(HttpServletRequest request){
        HttpSession session = request.getSession();
        User user = (User) session.getAttribute(request.getHeader("Token"));
        return user;
    }
}
